package com.neusoft.hifly.rpc.attachment.domain;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;

/**
 * Title: 附件服务
 * <p>
 * Description: 附件 接口对象
 * <p>
 * Copyright: Copyright (c) 2008
 * <p>
 * Company: 东软汉枫
 *
 * @author lihui
 * @version 1.0.0
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class FileDTO implements Serializable {
	private static final long serialVersionUID = -648100751610946966L;
	// 逻辑ID
	private long logicId;
	// 租户逻辑ID
	private long organLogicId;
	// 关联类型(存储应用编码)
	private String objType;
	// 关联ID (业务表逻辑ID)
	private long objLogicId;
	// 原文件名
	private String oldFileName;
	// 新文件名
	private String newFileName;
	// 文件长度(KB)
	private double fileLength;
	// 附件类型
	private String fileType;
	// 文件路径
	private String path;
	// 文档上传时顺序号
	private int fileOrder;
	// 全文批注：模版ID
	private long tempId;
	// 全文批注：文档类型
	private String docType;
	// 上传附件服务器URL地址
	private String fileUrl;
	// 上传人
	private long userId;
	// 文档修改日期
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonDeserialize(using = LocalDateTimeDeserializer.class)
	@JsonSerialize(using = LocalDateTimeSerializer.class)
	private LocalDateTime createTime;

	public long getLogicId() {
		return logicId;
	}

	public void setLogicId(long logicId) {
		this.logicId = logicId;
	}

	public long getOrganLogicId() {
		return organLogicId;
	}

	public void setOrganLogicId(long organLogicId) {
		this.organLogicId = organLogicId;
	}

	public String getObjType() {
		return objType;
	}

	public void setObjType(String objType) {
		this.objType = objType;
	}

	public long getObjLogicId() {
		return objLogicId;
	}

	public void setObjLogicId(long objLogicId) {
		this.objLogicId = objLogicId;
	}

	public String getOldFileName() {
		return oldFileName;
	}

	public void setOldFileName(String oldFileName) {
		this.oldFileName = oldFileName;
	}

	public String getNewFileName() {
		return newFileName;
	}

	public void setNewFileName(String newFileName) {
		this.newFileName = newFileName;
	}

	public double getFileLength() {
		return fileLength;
	}

	public void setFileLength(double fileLength) {
		this.fileLength = fileLength;
	}

	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public int getFileOrder() {
		return fileOrder;
	}

	public void setFileOrder(int fileOrder) {
		this.fileOrder = fileOrder;
	}

	public long getTempId() {
		return tempId;
	}

	public void setTempId(long tempId) {
		this.tempId = tempId;
	}

	public String getDocType() {
		return docType;
	}

	public void setDocType(String docType) {
		this.docType = docType;
	}

	public String getFileUrl() {
		return fileUrl;
	}

	public void setFileUrl(String fileUrl) {
		this.fileUrl = fileUrl;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public LocalDateTime getCreateTime() {
		return createTime;
	}

	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}

}
